hiddenLayerSize = 10; % 根据需要调整隐藏层大小
net = patternnet(hiddenLayerSize);

[net, tr]=train(net,Xtrain',Ytrain');

plotperform(tr);

save('NN_ver2.mat', 'net');